// Decompiled by GOOSIN CO,LTD Copyright 2010 Pavel Kouznetsov.
// home page: http://www.Goosin.net
// Decompiler options: packimports(3) fieldsfirst ansi space 
// Source File Name:   getRecordCountDS.java

package include.query;

import include.nseer_db.nseer_dbs;
import java.sql.ResultSet;

public class getRecordCountDS
{

	private String dbase;
	private String sql;
	private ResultSet rs;
	private int intRowCount;

	public getRecordCountDS()
	{
		dbase = "";
		sql = "";
		rs = null;
		intRowCount = 0;
	}

	public int count(nseer_dbs dbs, String sql)
	{
		try
		{
			rs = dbs.executeQuery(sql);
			intRowCount = 0;
			if (rs.last())
				intRowCount = rs.getRow();
		}
		catch (Exception ex)
		{
			ex.printStackTrace();
		}
		return intRowCount;
	}
}
